﻿using GolSig.Library;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Test.GolSig.Library.GridStorageSpecs
{
    
    
    /// <summary>
    ///This is a test class for GridStorageTest and is intended
    ///to contain all GridStorageTest Unit Tests
    ///</summary>
    [TestClass()]
    public class GridStorageTest
    {


  
        [TestMethod()]
        public void GridStorageConstructorTest()
        {
            GridSize gridSize = new GridSize(3,3);
            GridStorage target = new GridStorage(gridSize);
           
        }

      
   


   
        [TestMethod()]
        public void GetGridCellTest()
        {
            GridSize gridSize = new GridSize(3, 3);
            GridStorage target = new GridStorage(gridSize);
            GridPosition gridPosition = new GridPosition(new Position(1, 1));
            target.SetCellData(gridPosition, true);
            CellStatusInfo expected = new CellStatusInfo(  true );
            CellStatusInfo actual;
            actual = target.GetGridCell(gridPosition);
            Assert.IsTrue(expected.Equals(actual));
          
        }

      
  
    }
}
